package com.its.cloud.service;

import com.its.cloud.entity.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author huguangjun
 * @className StorageService
 * @date 2021/1/17
 * @desc 16:35
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {

    @PostMapping(value = "/storage/decrease")
    ResultBean decrease(@RequestParam("productId") Long productId,@RequestParam("count") Integer count);
}
